<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="获得Cookie方法.js"></script>
</head>
<body>
    这是购物车
    <script>
        let y = getCookie('login');
        if(!y){
            location.href='2.3denglu.html';
        }
    </script>
</body>
</html>